<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}碳排放预测系统{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
    <nav>
        <ul>
            {% if session.get('user_id') %}
                <li><a href="{{ url_for('dashboard') }}">仪表盘</a></li>
                <li><a href="{{ url_for('logout') }}">登出</a></li>
            {% else %}
                <li><a href="{{ url_for('register') }}">注册</a></li>
                <li><a href="{{ url_for('login') }}">登录</a></li>
            {% endif %}
        </ul>
    </nav>
    <div class="container">
        {% block content %}{% endblock %}
    </div>
</body>
</html>
